<div id="hp_intro"><%= @page_title %></div>
<p>
<% form_tag(points_searches_path, :method => 'get') do %>
<table cellpadding="0" cellspacing="0">
<tr>
	<td valign="middle"><%= text_field_tag "q", params[:q] %></td>
	<td valign="middle" style="padding-left:5px;"><%= submit_tag t('searches.new.submit'), :class => "yellow_button" %></td>
</tr>
</table>
<% end %>
<p>
<% if @points %>
	<%= render :partial => "nav" %>
<% end %>
<% if not @points %>
<% elsif @points.empty? %>
	<%= t('briefing.search.empty') %>
<% else %>
	<% if @point_results.total_hits > 15 %>
	<%= will_paginate WillPaginate::Collection.new((params[:page]||1),(15),@point_results.total_hits) -%>
	<p>
	<% end %>
	<% for point in @points %>
		<% quality = nil %>
		<% if @qualities %>
			<% quality = @qualities.detect {|e| e.point_id == point.id } %>
		<% end %>	
		<%= render :partial => "points/show_full", :locals => {:point => point, :quality => quality, :revision => nil}%>
	<% end %>

	<p>
	<%= will_paginate WillPaginate::Collection.new((params[:page]||1),(15),@point_results.total_hits) -%>
<% end %>
